package schoolWork;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: tao
 * Date: 2023-11-17
 * Time: 16:08
 */
public class Test3 {
    public static void main(String[] args) {
        try {
            int[] arr = new int[-1];
        } catch (NegativeArraySizeException e) {
            e.printStackTrace();
            System.out.println("数组大小为负数");
        }
    }
}
